package com.lemon.springcloud.core.config;

import java.util.LinkedHashMap;

/**
 * @author hdzhang
 * @ClassName LemonSpringBootConfig
 * @desc
 * @Date 2018/9/8 19:07
 * @Version 1.0
 **/
public class LemonSpringBootConfig {

    private static LinkedHashMap<String, String> mybatisGroupInfo = new LinkedHashMap<>();

    private static LinkedHashMap<String, String> redisGroupInfo = new LinkedHashMap<>();

    private static LinkedHashMap<String, String> rabbitmqGroupInfo = new LinkedHashMap<>();

    private static LinkedHashMap<String, String> zookeeperGroupInfo = new LinkedHashMap<>();

    private static LinkedHashMap<String, String> elasticsearchGroupInfo = new LinkedHashMap<>();

    public static LinkedHashMap<String, String> getMybatisGroupInfo() {
        return mybatisGroupInfo;
    }

    public static LinkedHashMap<String, String> getRedisGroupInfo() {
        return redisGroupInfo;
    }

    public static LinkedHashMap<String, String> getRabbitmqGroupInfo() {
        return rabbitmqGroupInfo;
    }

    public static LinkedHashMap<String, String> getZookeeperGroupInfo() {
        return zookeeperGroupInfo;
    }

    public static LinkedHashMap<String, String> getElasticsearchGroupInfo() {
        return elasticsearchGroupInfo;
    }

    public static void addMybatisGroupInfo(String groupName, String protocol) {
        mybatisGroupInfo.put(groupName, protocol);
    }

    public static void addRedisGroupInfo(String groupName, String protocol) {
        redisGroupInfo.put(groupName, protocol);
    }

    public static void addRabbitmqGroupInfo(String groupName, String protocol) {
        rabbitmqGroupInfo.put(groupName, protocol);
    }

    public static void addZookeeperGroupInfo(String groupName, String protocol) {
        zookeeperGroupInfo.put(groupName, protocol);
    }

    public static void addElasticsearchGroupInfoGroupInfo(String groupName, String protocol) {
        elasticsearchGroupInfo.put(groupName, protocol);
    }
}
